category: auxiliary
step: 1_silos
sub_step: 1_normalize
in_main_macro: normalize
doc_status: ready
language: eng
macro normalize_name
This macro takes a name
as an argument and returns a version of it that can be used as a column name.
name
(required argument - the name to be normalized, in string format){{ datacraft.normalize_name(name) }}
This macro takes a name
as an argument and returns a version of it that can be used as a column name. The normalization process includes the following steps:
Example:
-- Normalize a column name
{{ datacraft.normalize_name('My Column Name') }}
Output:
My_Column_Name